<?php

/**
 * The base controller which is used by the Front and the Admin controllers
 */
class My_Controller extends CI_Controller {
function __construct()
	{
		parent::__construct();
	}
}


class Admin_Controller extends My_Controller {

	public $theme_data = array(
		'layout_main'=>'admin/include/layout',
	);
	public $mytable = "admin";
	public $heading = "";
	
	function __construct()
	{
		parent::__construct();
		$this->load->model("mresource");
	}
	function nopermission(){
		$this->theme_data["main"] = "include/no-permission";
		$this->template->viewAdmin($this->theme_data);
	}
}
 